local skill = fk.CreateSkill{
  name = "iberia__luoyi"
}

Fk:loadTranslationTable{
  [skill.name] = "裸衣",
  [":"..skill.name] = "当你使用【杀】或【决斗】时，你可以弃一张牌并令之基础伤害+1。若弃置了防具牌，则令所有目标不能响应之。",
  [skill.name.."-prompt"] = "裸衣：可以弃一张牌并令 %arg 的基础伤害+1"
}

skill:addEffect(fk.CardUsing, {
  can_trigger = function (self, event, target, player, data)
    if player == target and player:hasSkill(skill.name) then
      return table.contains({"slash", "duel"}, data.card.trueName) and not player:isNude()
    end
  end,
  on_cost = function (self, event, target, player, data)
    local prompt = skill.name.. "-prompt:::"..data.card:toLogString()
    local dis = player.room:askToDiscard(player, { max_num = 1, min_num = 1, skill_name = skill.name, include_equip = true, cancelable = true, skip = true, prompt = prompt })
    if #dis == 1 then
      event:setCostData(self, dis[1])
      return true
    end
  end,
  on_use = function (self, event, target, player, data)
    local id = event:getCostData(self)
    local room = player.room
    room:throwCard(id, skill.name, player, player)
    data.additionalDamage = (data.additionalDamage or 0) + 1
    if Fk:getCardById(id).sub_type == Card.SubtypeArmor then
      data.disresponsiveList = data:getAllTargets()
    end
  end
})

return skill
